//
//  ANBuyCollectionView.h
//  Ants
//
//  Created by ZHM on 16/8/27.
//  Copyright © 2016年 ZHM. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ANBuyCollectionView;

@protocol ANBuyCollectionViewDelegate <NSObject>

@optional
/**
 * 带动画
 */
- (void)buyCollectionView:(ANBuyCollectionView *)buyCollectionView didClickBtn:(NSInteger)index;
/**
 * 不带动画
 */
- (void)clickConfirmBuyCollectionView:(ANBuyCollectionView *)buyCollectionView;

@end

@interface ANBuyCollectionView : UIImageView

+ (instancetype)buyCollectionViewWithViewController:(id)delegate titles:(NSArray *)titles animation:(BOOL)animation;

@property (nonatomic, weak) id<ANBuyCollectionViewDelegate>delegate;

/**
 * 按钮名字
 */
@property (nonatomic, strong) NSArray *titles;
/**
 * 动画
 */
@property (nonatomic, assign) BOOL animation;
/**
 * 是否弹出
 */
@property (nonatomic, assign) BOOL isPopup;
@end
